@import "./styles/iconfont/index.scss";
@import "./styles/comp/index.scss";

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}
.bgBox {
  // background: radial-gradient(ellipse 100% 30% at 100% 0%, #c0eafc 0%, #e9f5fa 80%, #ffffff 100%);
  background-position: left top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}
// 首页-注册引导使用
.bgBox1 {
  // background-image: url(https://csstatic.91goodschool.com/UpFiles/gp/1000/202404/11/154838623296_w400.webp);
  background-image: url(https://static.91goodschool.com/UpFiles/public/yikao/home-guide.png);
}
// 社区-我的-话题广场使用
.bgBox2 {
  // background-image: url(https://csstatic.91goodschool.com/UpFiles/gp/1000/202404/11/154857826977_w400.webp);
  background-image: url(https://static.91goodschool.com/UpFiles/public/yikao/community-top.png);
}
.fixedPage {
  @apply box-border h-screen fixed left-0 right-0 top-0;
}
.GpShareButton__shareBtn {
  font-family: "Microsoft YaHei";
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  @apply border-none inline-block font-normal text-24px text-hex-b8b8bf;
  &::after {
    border: none !important;
  }
}
// html,
// page {
//   // 全局设置小程序的样式
//   -webkit-overflow-scrolling: touch;
// }

// #app {
//   // 全局设置网页样式
//   height: auto;
//   -webkit-overflow-scrolling: touch;
// }

// html,
// body,
// #app,
// #app > view,
// #container,
// #container > view,
// .taro_page {
//   height: 100%;
// }
.yahei {
  font-family: "Microsoft YaHei";
}

.yahei-bold {
  font-family: "Microsoft YaHei Bold";
}

.yahei-ui {
  font-family: "Microsoft YaHei UI";
}

.ellipse_2 {
  /* stylelint-disable-next-line value-no-vendor-prefix */
  display: -webkit-box;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ellipse_3 {
  /* stylelint-disable-next-line value-no-vendor-prefix */
  display: -webkit-box;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ellipse_1 {
  /* stylelint-disable-next-line value-no-vendor-prefix */
  display: -webkit-box;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  -webkit-line-clamp: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.bg-image {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-origin: border-box;
}

.cover-content {
  width: 400px;
  height: auto;
  background-color: #fff;
  color: #333;
  font-size: 28px;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  border-radius: 16px;
  white-space: normal;
  z-index: 999;
}

// 充当背景图
.cover-image {
  @apply absolute left-0 right-0 top-0 bottom-0;
}

.html__image {
  width: 100%;
}

// 定义 mixin
@mixin gp-ce-paragraph-style {
  margin-top: 44rpx !important;
  text-indent: 0 !important;
  font-size: 32rpx !important;
  line-height: 56rpx !important;
  text-align: justify !important;
  letter-spacing: 0.4rpx !important;
}

/* 文本 */
.gp-ce-paragraph {
  @include gp-ce-paragraph-style;

  &-align-right {
    text-align: right !important;
    width: 100% !important;
  }
  &-align-center {
    text-align: center !important;
    width: 100% !important;
  }

  &-align-justify {
    text-align: justify !important;
    width: 100% !important;
  }
}

/* 表格 */
.gp-ce-table {
  font-size: 28rpx !important;
  line-height: 42rpx !important;
  max-width: 100% !important;
  width: auto !important;
  overflow-x: auto !important;
}

/* 标题组件渲染 */
.gp-ce-header {
  &.gp-ce-h2 {
    font-size: 44rpx !important;
    line-height: 60rpx !important;
    margin: 48rpx 0rpx !important;
  }

  &.gp-ce-h3 {
    font-size: 40rpx !important;
    line-height: 56rpx !important;
    margin: 40rpx 0rpx !important;
  }

  &.gp-ce-h4 {
    font-size: 36rpx !important;
    line-height: 48rpx !important;
    margin: 32rpx 0rpx !important;
  }
}

/* 素材链接组件渲染 */
.gp-ce-entry-link {
  margin: 12rpx 0 !important;
  padding: 25rpx !important;
  border-radius: 4rpx !important;

  &:hover {
    box-shadow: 0 0 6rpx rgba(0, 0, 0, 0.16) !important;
  }

  // 图片
  &__img {
    width: 160rpx !important;
    height: 160rpx !important;
    border-radius: 8rpx !important;
    margin-right: 40rpx !important;
    object-fit: cover !important;
  }

  // 内容容器
  &__content {
    gap: 16rpx !important;
  }

  // 标题
  &__title {
    font-size: 36rpx !important;
  }

  // 描述
  &__desc {
    font-size: 24rpx !important;
  }

  // 按钮
  &__button {
    // display: none !important;
    font-size: 28rpx !important;
    border-radius: 56rpx !important;
    width: 128rpx !important;
    height: 62rpx !important;
  }

  &__type {
    font-size: 28rpx !important;
    border-radius: 8rpx !important;
    padding: 6rpx 8rpx !important;
    margin-left: 6rpx !important;
  }
}

/* 机构预览组件渲染 */
.gp-ce-school-link {
  margin: 12rpx 0 !important;
  padding: 25rpx !important;
  border-radius: 4rpx !important;

  &:hover {
    box-shadow: 0 0 6rpx rgba(0, 0, 0, 0.16) !important;
  }

  // 图片
  &__img {
    width: 160rpx !important;
    height: 160rpx !important;
    border-radius: 8rpx !important;
    margin-right: 40rpx !important;
  }

  // 内容容器
  &__content {
    gap: 16rpx !important;
  }

  // 标题
  &__title {
    font-size: 36rpx !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    outline: none !important;
  }

  // 描述
  &__desc {
    font-size: 24rpx !important;
    line-height: 1 !important;
  }

  // 标签容器
  &__tag {
    gap: 16rpx !important;
  }

  // 标签
  &__tag-item {
    font-size: 24rpx !important;
    border: 2rpx solid #3775f6 !important;
    padding: 2rpx !important;
  }

  // 备注
  &__remark {
    font-size: 24rpx !important;
    line-height: 1 !important;
  }

  // 按钮
  &__button {
    // display: none !important;
    font-size: 28rpx !important;
    border-radius: 56rpx !important;
    width: 172rpx !important;
    height: 62rpx !important;
  }
}

/* 机构图文模块组件渲染 */
.gp-ce-school-mit {
  margin: 12rpx 0 !important;
  padding: 24rpx 0 !important;

  // 标题
  &__title {
    font-size: 36rpx !important;
  }

  // 描述
  &__desc {
    @include gp-ce-paragraph-style;
  }

  // 副标题
  &__sub_title {
    @include gp-ce-paragraph-style;
  }

  // 封面大图
  &__img {
    border-radius: 3rpx;
    max-width: 100%;
    display: block;
    max-height: 640rpx;
    object-fit: contain;
    margin: 12rpx 0px;
  }

  // 内容容器
  &__content {
    gap: 16rpx !important;

    // 横向/水平滚动条
    &-horizontal {
      &-item {
        margin-top: 20rpx !important;
        padding: 24rpx 24rpx !important;
        width: 336rpx !important;
        border-radius: 12rpx !important;

        // 图片
        &-img {
          width: 180rpx !important;
          height: 180rpx !important;
          border-radius: 9999rpx;
        }

        // 图标
        &-icon {
          font-size: 96rpx !important;
          color: #007aff !important;
        }

        // 二级标题
        &-title {
          @include gp-ce-paragraph-style;
        }

        // 子标题
        &-sub_title {
          @include gp-ce-paragraph-style;
        }

        // 描述
        &-desc {
          @include gp-ce-paragraph-style;
        }
      }
    }

    // 纵向/垂直滚动条
    &-vertical {
      &-item {
        margin-top: 20rpx !important;
        padding: 24rpx 24rpx !important;
        border-radius: 12rpx !important;

        // 图片
        &-img {
          width: 60rpx !important;
          height: 60rpx !important;
          border-radius: 6rpx !important;
        }

        // 图标
        &-icon {
          font-size: 96rpx !important;
          color: #007aff !important;
        }

        // 二级标题
        &-title {
          @include gp-ce-paragraph-style;
        }

        // 子标题
        &-sub_title {
          @include gp-ce-paragraph-style;
        }

        // 描述
        &-desc {
          @include gp-ce-paragraph-style;
        }
      }
    }
  }
}

/* 机构轮播模块组件渲染 */
.gp-ce-school-mis {
  margin: 12rpx 0 !important;
  padding: 24rpx 0 !important;

  // 标题
  &__title {
    font-size: 36rpx !important;
  }

  // 描述
  &__desc {
    @include gp-ce-paragraph-style;
  }

  // 副标题
  &__sub_title {
    @include gp-ce-paragraph-style;
  }

  // 封面大图
  &__img {
    border-radius: 3rpx;
    max-width: 100%;
    display: block;
    max-height: 640rpx;
    object-fit: contain;
    margin: 12rpx 0px;
  }

  // 内容容器
  &__content {
    gap: 16rpx !important;

    // 横向/水平滚动条
    &-horizontal {
      gap: 24rpx !important;
      margin-top: 20rpx !important;

      &-item {
        height: 360rpx !important;
        width: 360rpx !important;
        object-fit: cover !important;
        border-radius: 8rpx !important;
      }
    }

    // 纵向/垂直滚动条
    &-vertical {
      padding-left: 28rpx !important;
      padding-right: 28rpx !important;
      padding-top: 20rpx !important;
      padding-bottom: 36rpx !important;

      &-item {
        &-img {
          border-radius: 8rpx !important;
        }
      }
    }
  }
}

/* 图片预览组件渲染 */
.gp-ce-image {
  margin: 24rpx 0 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  &__img {
    border-radius: 6rpx !important;
    max-width: 100% !important;
  }

  &__border {
    border: 2rpx solid #e8e8eb !important;
  }

  &__background {
    padding: 30rpx !important;
  }
}

/* 附件组件渲染 */
.gp-ce-file {
  margin: 12rpx 0 !important;
  padding: 20rpx 24rpx !important;
  border-radius: 16rpx !important;
  border: 2rpx solid #eff0f1 !important;

  &__icon-background {
    min-width: 72rpx !important;
    height: 72rpx !important;
    margin-right: 24rpx !important;
    border-radius: 16rpx !important;
  }

  // 内容容器
  &__title {
    font-size: 28rpx !important;
  }

  // 描述
  &__size {
    font-size: 24rpx !important;
  }

  // 按钮
  &__button {
    // display: none !important;
    padding: 12rpx !important;
    border-radius: 12rpx !important;
    font-size: 28rpx !important;
    box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.1) !important;
  }
}

/* 链接组件渲染 */
.gp-ce-link {
  margin: 12rpx 0 !important;
  padding: 20rpx 24rpx !important;
  border-radius: 16rpx !important;
  border: 2rpx solid #eff0f1 !important;

  // 图片
  &__img {
    width: 172rpx !important;
    height: 172rpx !important;
    border-radius: 8rpx !important;
    margin-right: 24rpx !important;
  }

  // 内容容器
  &__content {
    gap: 12rpx !important;
    margin-right: 24rpx !important;
  }

  // 标题
  &__title {
    font-size: 36rpx !important;
  }

  // 描述
  &__desc {
    font-size: 28rpx !important;
  }

  // 按钮
  &__button {
    // display: none !important;
    font-size: 28rpx !important;
    width: 128rpx !important;
    height: 64rpx !important;
    border-radius: 56rpx !important;
  }
}

/* 标题富文本模板组件 */
.gp-ce-header-tmp {
  margin: 48rpx 0 !important;
  font-size: 36rpx !important;
  line-height: 56rpx !important;

  // 模板001
  &.gp-ce-header-tmp__common001 {
    height: 80rpx !important;
  }

  // 模板001 - 序号
  &__common001-prefix {
    padding: 0 20rpx !important;
  }

  // 模板001 - 标题
  &__common001-title {
    padding: 0 32rpx !important;
  }
}
